Name :Generate pulses

Symbol:TP

Illustrate:

    Using the Generate pulse command, you can set the output Q to a preset period of time. This command is started when the result of the logic operation of the input IN changes from "0" to "1" (the rising edge of the signal). When the command is activated, the preset time PT starts the timer. Regardless of how the state of the subsequent input signal changes, the output Q is set by the PT for a period of time. When the PT duration is being timed, the signal status of the output Q will not be affected even if a new signal rising edge is detected.
    The current time value at the ET output can be scanned. This timer value starts at T#0s and ends when the duration value PT is reached. If the PT time runs out and the signal status of the input IN is "0", the ET output is reset. 

Image:

Parameter:

Parameter Statement Type Description
IN Input BOOL
Initiation input
PT Input TIME
The duration of the pulse, the value of the PT parameter must be positive
Q Output BOOL
Pulse output
ET Output TIME
The current time value

ulse timing diagram:

Example:

LD:

ST:



Interpretation:

Parameter operandvalue
INTagStartSignal transitions“0”=>“1”
PTTagPresetTimeT#10s
QTagStatusTRUE
ETTagElapsedTimeT#0s => T#10s
    When the signal status of the TagStart operand changes from 0 to 1, the time preset by the PT parameter starts and the TagStatus operand is set to 1. The current-time value is stored in the TagElapsedTime operand. When the timer ends, the signal status of the operand "TagStatus" is reset to "0".